package xyz.zhzby.cyzx.cms.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.zhzby.cyzx.servicebase.domain.RestResponse;

import java.util.List;
import java.util.Map;

/**
 * @author zby
 * @date 2021/12/13
 */
@Component
@FeignClient("service-acl")
public interface UserClient {

    @ApiOperation("根据Id查询用户")
    @GetMapping("/acl/user/info/{userId}")
    public RestResponse<Map<String, Object>> getUserInfoById(@PathVariable("userId") Long userId);

    @ApiOperation("根据Id列表查询用户")
    @GetMapping("/acl/user/info/list")
    public List<Map<String, Object>> getUserInfoByIdList(@RequestParam("userIds") List<Long> userIds);

}
